<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>ComputerERP主页</title>
    <link rel="stylesheet" href="/static/js/layui/css/layui.css">
    <script type="text/javascript" src="/static/js/jquery-3.5.1.min.js"></script>
    <script type="text/javascript" src="/static/js/layui/layui.js"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <!--    上方导航栏-->
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">ComputerERP</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <!--        <ul class="layui-nav layui-layout-left">-->
        <!--            &lt;!&ndash; 移动端显示 &ndash;&gt;-->
        <!--            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">-->
        <!--                <i class="layui-icon layui-icon-spread-left"></i>-->
        <!--            </li>-->

        <!--            <li class="layui-nav-item layui-hide-xs"><a href="">nav 1</a></li>-->
        <!--            <li class="layui-nav-item layui-hide-xs"><a href="">nav 2</a></li>-->
        <!--            <li class="layui-nav-item layui-hide-xs"><a href="">nav 3</a></li>-->
        <!--            <li class="layui-nav-item">-->
        <!--                <a href="javascript:;">nav groups</a>-->
        <!--                <dl class="layui-nav-child">-->
        <!--                    <dd><a href="">menu 11</a></dd>-->
        <!--                    <dd><a href="">menu 22</a></dd>-->
        <!--                    <dd><a href="">menu 33</a></dd>-->
        <!--                </dl>-->
        <!--            </li>-->
        <!--        </ul>-->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    tester
                </a>
                <dl class="layui-nav-child">
                    <dd><a th:href="@{/main/selfinformation}">个人信息</a></dd>
                    <dd><a href="">退出登录</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>
    <!--左侧导航栏-->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">进货管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">进货入库</a></dd>
                        <dd><a href="javascript:;">退货出库</a></dd>
                        <dd><a href="javascript:;">进货单查询</a></dd>
                        <dd><a href="javascript:;">退单查询</a></dd>
                        <dd><a href="javascript:;">当前库存查询</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">销售管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">销售出库</a></dd>
                        <dd><a href="javascript:;">客户退货</a></dd>
                        <dd><a href="javascript:;">销售单查询</a></dd>
                        <dd><a href="javascript:;">当前库存查询</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">库存管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">商品报损</a></dd>
                        <dd><a href="javascript:;">商品报溢</a></dd>
                        <dd><a href="javascript:;">库存报警</a></dd>
                        <dd><a href="javascript:;">报损报溢查询</a></dd>
                        <dd><a href="javascript:;">当前库存查询</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">统计报表</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">供应商统计报表</a></dd>
                        <dd><a href="javascript:;">客户统计报表</a></dd>
                        <dd><a href="javascript:;">商品采购统计</a></dd>
                        <dd><a href="javascript:;">商品销售统计</a></dd>
                        <dd><a href="javascript:;">日销售统计报表</a></dd>
                        <dd><a href="javascript:;">月销售统计报表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">基础资料</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">供应商统计报表</a></dd>
                        <dd><a href="javascript:;">客户统计报表</a></dd>
                        <dd><a href="javascript:;">商品采购统计</a></dd>
                        <dd><a href="javascript:;">商品销售统计</a></dd>
                        <dd><a href="javascript:;">月销售统计报表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item ">
                    <a class="" href="javascript:;">系统设置</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">供应商统计报表</a></dd>
                        <dd><a href="javascript:;">客户统计报表</a></dd>
                        <dd><a href="javascript:;">商品采购统计</a></dd>
                        <dd><a href="javascript:;">商品销售统计</a></dd>
                        <dd><a href="javascript:;">月销售统计报表</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!--主体区域-->
    <!--    <div class="layui-body">-->
    <!--        &lt;!&ndash; 内容主体区域 &ndash;&gt;-->
    <!--&lt;!&ndash;        <div style="padding: 15px;">内容主体区域。记得修改 layui.css 和 js 的路径</div>&ndash;&gt;-->
    <!--    </div>-->
    <div class="layui-tab layui-tab-brief">
        <div class="layui-body layui-tab-content">
            <div class="layui-tab-item layui-show">
                <div class="layui-main">
                    <div id="LAY_layedit_code">
                        <div style="margin:0 auto; max-width: 1140px;">
                            <!--                            这里写主体内容-->
                            <div class="layui-row layui-col-space5">
                                <div class="layui-col-md3 ">
                                    <div class="grid-demo grid-demo-bg1" style="background-color: pink">1/4</div>
                                </div>
                                <div class="layui-col-md3">
                                    <div class="grid-demo" style="background-color: pink">1/4</div>
                                </div>
                                <div class="layui-col-md3">
                                    <div class="grid-demo grid-demo-bg1" style="background-color: pink">1/4</div>
                                </div>
                                <div class="layui-col-md3">
                                    <div class="grid-demo" style="background-color: pink">1/4</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    //JS
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,$ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function(othis){
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
            ,menuRight: function(){
                layer.open({
                    type: 1
                    ,content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                    ,area: ['260px', '100%']
                    ,offset: 'rt' //右上角
                    ,anim: 5
                    ,shadeClose: true
                });
            }
        });
    });
    $(function () {

    });
</script>
</body>
</html>